package com.itheima.proxy.static_proxy;

/**
 * @Author 王加鑫
 * @Date 2021/08/06 18:51
 * @Since JDK 1.8
 * 中介（代理类）
 */
public class Medium {

   private HouseMan houseMan;

    public void setHouseMan(HouseMan houseMan) {
        this.houseMan = houseMan;
    }

    public void chuZu(){
        System.out.println("中介帮房东出租房子");

        houseMan.chuZu();

        System.out.println("中介收取中介费");
    }
}
